{include file="common/header"}

<script type="text/javascript" charset="utf-8" src="__CDN__/assets/js/index/ue/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__CDN__/assets/js/index/ue/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__CDN__/assets/js/index/ue/lang/zh-cn/zh-cn.js"></script>

<div class="container fatieandedit">

    <p class="f">发帖</p>

    <form action="/index/user/editDigitalslides/ids/{$row.id}.html" method="POST" id="form1">
        <div class="fatieandedit-list biaoti">
            <div class="fatie-edit-left">
                <label>标题：</label>
            </div>
            <div class="fatie-edit-right bankuai">
                <input type="text" name="title" placeholder="标题" value="{$row.title}">
            </div>
        </div>
        <div class="fatieandedit-list">
            <div class="fatie-edit-left">
                <label>内容：</label>
            </div>
            <div class="fatie-edit-right editor">
                <textarea id="editor" name="content" style="width:990px;height:500px;">{$row.content}</textarea>
            </div>
        </div>

        {foreach name="$row.files" item="vo"}
        <div class="fatieandedit-list qiepian" data-index="{$key}">
            <div class="fatie-edit-left">
                <label>切片：</label>
            </div>
            <div class="fatie-edit-right">
                <input type="text" name="file[{$key}][name]" placeholder="切片名称" value="{$vo.name}">
                <input type="hidden" name="file[{$key}][rename]" class="file-rename"  value="{$vo.rename}">
                <input type="hidden" name="file[{$key}][file]" class="file-file" value="{$vo.file}">
                <label for="file-0" class="filebtn">上传切片</label>
                <input type="file" name="file[{$key}][path]" id="file-0" onchange="showPreview(this)" class="myfile">
                <span class="file-info">{$vo.rename}</span>
                <a class='deleteImg' href='javascript:;'>删除切片</a>
            </div>
        </div>
        {/foreach}

    </form>

    <div class="fatieandedit-list tianjia">
        <a>点击添加附件框</a>
    </div>

    <div class="fatieandedit-list ">
        <div class="fatie-edit-left">
            <label style="visibility: hidden;">切片：</label>
        </div>
        <div class="fatie-edit-right ">
            <input type="checkbox" checked name="ag" placeholder="切片名称" id="banquansm" form="form1">
            <p> 版权声明<label for="banquansm" class="banquansm">这是我的原创内容，我已阅读并同意<a href="">《智识原创声明》</a></label>
                <input type="submit" name="" class="bangquansm-btn" value="发表" form="form1">
        </div>
        <div style="clear: both;"></div>
        <p id="wrong" style="text-align: center;"></p>

    </div>
</div>
<!-- 底部样式开始           -->
{include file="common/login"}
{include file="common/footer"}
<script src="__CDN__/assets/libs/plupload/js/plupload.full.min.js"></script>
<script src="__CDN__/assets/js/index/digitalslides.js"></script>